package com.cwj.web.controller;

import common.entity.user;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//登录注册接口
@RestController
@RequestMapping("/login")
public class loginController {

    @PostMapping("/user/")  //注册成为普通用户
    public Boolean login(user user){
        System.out.println(user);
        return true;
    }
}
